package core.util
{
	import mx.modules.ModuleLoader;
	
	public class MainUtil
	{
		private static var instance:MainUtil;
		private var _main:ModuleLoader;
		
		public function MainUtil(enforcer:SingletonEnforcer)
		{
			if (enforcer == null) {
                throw new Error( "You Can Only Have One ModelLocator" );
            }
		}
		
		public static function getInstance():MainUtil {
            if (instance == null) {
                instance = new MainUtil( new SingletonEnforcer );
            }
            return instance;
        }
        
        public function set main(moduleLoader:ModuleLoader):void
        {
        	_main = moduleLoader;
        }

	}
}
class SingletonEnforcer {}